package com.sdx.console.promote.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ibeetl.admin.core.entity.BaseEntity;
import com.ibeetl.admin.core.util.ValidateConfig;
import lombok.Data;
import org.beetl.sql.core.annotatoin.AssignID;
import org.beetl.sql.core.annotatoin.ColumnIgnore;

import javax.validation.constraints.NotNull;
import java.util.Date;

/* 
* 
* gen by Spring Boot2 Admin 2019-01-24
*/
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
@Data
public class ChannelAuthorization extends BaseEntity{

    //授权码
    @NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
    @AssignID
    private String auCode ;
	
    //渠道

    private String channelCode ;

    @ColumnIgnore
    private String channelName;

    @ColumnIgnore
    private Integer orgId;
	
    //会员id

    private String customerId ;
	
    //可用标记 1、可用，0、不可用

    private Integer auStatus ;
	
    //创建人

    private Integer createdBy ;
	
    //创建人名称

    private String createdName ;
	
    //创建时间

    private Date createdTime ;
	
    //更新人

    private Integer updatedBy ;
	
    //更新人名称

    private String updatedName ;
	
    //更新时间

    private Date updatedTime ;

}
